//
//  LoLCollectionViewCell.m
//  XWZ_News_Work
//
//  Created by penngshi on 16/1/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LoLCollectionViewCell.h"

@implementation LoLCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}
- (void)layoutSubviews
{
    [self.superNewTimeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(self.cententImageV.mas_bottom).offset(-10);
        make.size.mas_equalTo(CGSizeMake(200, 20));
        make.left.mas_equalTo(@2);
        
    }];
    [self.timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(self.cententImageV.mas_bottom).offset( - 10);
        make.right.mas_equalTo(@0);
        make.size.mas_equalTo(CGSizeMake(40, 20));
    }];
    [self.cententImageV mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(@0);
        make.left.mas_equalTo(@0);
        make.size.mas_equalTo(CGSizeMake(self.frame.size.width, 100));
        
    }];
    
    [self.cententLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.cententImageV.mas_bottom).offset(10);
        make.left.mas_equalTo(@2);
        make.size.mas_equalTo(CGSizeMake(self.frame.size.width, 20));
        
    }];
    
}
- (void)createSubView

{
     
     self.backgroundColor = [UIColor whiteColor];
    
    self.cententImageV = [UIImageView new];
    
//    self.cententImageV.backgroundColor = [UIColor blueColor];
    [self.contentView addSubview:self.cententImageV];
    
   
    
    self.superNewTimeLabel = [UILabel new];
    self.superNewTimeLabel.font = [UIFont systemFontOfSize:15];
    self.superNewTimeLabel.textColor = [UIColor whiteColor];
    [self.cententImageV addSubview:self.superNewTimeLabel];
    
    self.timeLabel = [UILabel new];
    self.timeLabel.font = [UIFont systemFontOfSize:15];
    self.timeLabel.textColor = [UIColor whiteColor];
    [self.cententImageV addSubview:self.timeLabel];
    
    
    
    
    self.startButton = [UIButton new];
//    self.startButton.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.startButton];
    
    
    self.cententLabel = [UILabel new];
    self.cententLabel.font = [UIFont fontWithName:@"Helvetica" size:17.0];
    self.cententLabel.textColor = [UIColor colorWithRed:0.34 green:0.34 blue:0.45 alpha:1];
    [self.contentView addSubview:self.cententLabel];
    
    
    self.renewLabel = [UILabel new];
    [self.contentView addSubview:self.renewLabel];
    
    self.peopleImageV = [UIImageView new];
    [self.contentView addSubview:self.peopleImageV];
    
    
    self.peopleLabel = [UILabel new];
    [self.contentView addSubview:self.peopleLabel];
    
}

@end
